package com.example.ftptest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Initiator {

    FTPConfiguration ftpConfiguration;

    @Autowired
    public Initiator(FTPConfiguration ftpConfiguration) {
        ftpConfiguration.myFtpServer().initFtp();
        ftpConfiguration.myFtpServer().start();
    }
}
